(function () {
    this.addRow = function (anchor) {
        var anchorRow = anchor.parentNode.parentNode, row, cell, input;
        row = this.document.createElement('tr');
        cell = this.document.createElement('td');
        input = this.document.createElement('input');
        input.type = 'text';
        input.name = 'lang[]';
        cell.appendChild(input);
        row.appendChild(cell);
        cell = this.document.createElement('td');
        input = this.document.createElement('input');
        input.type = 'text';
        input.name = 'label[]';
        cell.appendChild(input);
        row.appendChild(cell);
        anchorRow.parentNode.insertBefore(row, anchorRow);
    };
})();